import request from '@/router/axios';

//根据ID获取房屋信息
export const getHouseInfoById = (id) => {
  return request({
    url: '/api/smart-xapply/gis/getHouseInfoById',
    method: 'post',
    params:{
      id
    }
  })
}

//根据ID获取楼栋信息
export const getBuildingInfo = (buildingId) => {
  return request({
    url: '/api/smart-xapply/gis/getBuildingInfo',
    method: 'post',
    params:{
      buildingId
    }
  })
}

//根据网格数量
export const getNextGridCount = (deptId) => {
  return request({
    url: '/api/smart-xapply/gis/getNextGridCount',
    method: 'post',
    params:{
      deptId
    }
  })
}

//
export const getHouseCountAndName = (gridId) => {
  return request({
    url: '/api/smart-xapply/gis/getHouseCountAndName',
    method: 'post',
    params:{
      gridId
    }
  })
}

//查询房屋列表
export const getHouseByParam = (data) => {
  return request({
    url: '/api/smart-xapply/gis/getHouseByParam',
    method: 'post',
    params:data
  })
}

//获取地区信息
export const getDistrictString = (gridId) => {
  return request({
    url: '/api/smart-xapply/gis/getDistrictString',
    method: 'post',
    params:{
      gridId
    }
  })
}

//获取小区列表
export const getBuilding = (gridId,name) => {
  return request({
    url: '/api/smart-xapply/gis/getBuilding',
    method: 'post',
    params:{
      gridId,
      name
    }
  })
}

//获取楼栋单元列表
export const getBuildingUnits = (buildingId) => {
  return request({
    url: '/api/smart-xapply/gis/getBuildingUnits',
    method: 'post',
    params:{
      buildingId
    }
  })
}

//获取辖区房屋信息
export const getHouseCount = (gridId) => {
  return request({
    url: '/api/smart-xapply/gis/getHouseCount',
    method: 'post',
    params:{
      gridId
    }
  })
}
